package vpnserver

import (
	"DB/HttpVPN/client"
	"fmt"
	"net"
)

type VPNServer struct {
}

func (this *VPNServer) start() {

}

func (this *VPNServer) Listen() {
	listener, err := net.Listen("tcp", ":8080")
	if err != nil {
		panic(err)
	}
	for true {
		conn, err := listener.Accept()
		if err != nil {
			continue
		}
		createClient := client.CreateClient(conn)
		go createClient.Serve()
		fmt.Println("one connected")
	}
}
